Ext.namespace("org.microsite.user");

User.prototype.getType = function() {return 'User';};

org.microsite.util.ViewRegistry.add(new org.microsite.util.ViewHelper({
    type : User,
    service : UserRemote,
    template : new Ext.XTemplate('<table border="0" cellspacing="5">',
            '<tr><td><b>Name</b></td><td>{name}</td></tr>',
            '<tr><td><b>Description</b></td><td>{description}</td></tr>',
            '<tr><td><b>Domain</b></td><td>{domain}</td></tr>',
            '<tr><td><b>Username</b></td><td>{uid}</td></tr>',
            '</table>'),
    fields : [{name:'id'},{name:'name'},{name:'description'},{name:'domain'},{name:'uid'},{name:'pwd'}]
}));
